package com.xf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xf.common.core.entity.dmp.DmpOrganization;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
*@author JoeyLiu
*@create 2022-03-29 14:57
*/
@Mapper
public interface DmpOrganizationMapper extends BaseMapper<DmpOrganization> {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String id);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    DmpOrganization selectByPrimaryKey(String id);

    int updateBatch(List<DmpOrganization> list);

    int updateBatchSelective(List<DmpOrganization> list);

    int batchInsert(@Param("list") List<DmpOrganization> list);

    int insertOrUpdate(DmpOrganization record);

    int insertOrUpdateSelective(DmpOrganization record);
}